/**
 * 
 */
package com.pmsco.pms.jsonutil;

import java.io.IOException;

import org.codehaus.jackson.JsonGenerator;
import org.codehaus.jackson.JsonProcessingException;
import org.codehaus.jackson.map.JsonSerializer;
import org.codehaus.jackson.map.SerializerProvider;

import com.pmsco.pms.core.domain.PmsRole;

/**
 * @author Long Tran
 *
 */
public class PmsCustomRoleSerialize extends JsonSerializer<PmsRole> {
	@Override
	public void serialize(PmsRole value, JsonGenerator gen, SerializerProvider arg2) throws IOException, JsonProcessingException {
		gen.writeString(value.getDescription());
	}
}
